package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorMapper {


    /**
     * 为菜品新增口味
     */

    void saveBatch(List<DishFlavor> flavorList);

    /**
     * 根据菜品id删除口味
     * @param ids
     */
    void deleteByIds(List<Long> ids);

    /**
     * 回显数据
     * @param id
     * @return
     */


    List<DishFlavor> selectById(Long id) ;
}
